<template>
  <el-image :src="src">
    <template #error>
      <div class="image-slot">
        <img :src="errorSrc" alt="" />
      </div>
    </template>
  </el-image>
</template>

<script setup lang="ts">
interface IProps {
  src: string
  errorSrc: string
}

defineProps<IProps>()
</script>
